<extend name="Public/base" />

<block name="body">
	<link href="__STATIC__/bootstrap/css/bootstrap.css" rel="stylesheet">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>{$meta_title}</h2>
	</div>
    
    <div class="container-fluid">
    <form class="form-inline" method="post" action="{:U('index')}" role="form">
    	<div class="row">
    		<div class="form-group">
    			<a class="btn btn-return" href="{:U('Score/index')}">返 回</a>
				<a class="btn" href="{:U('score/sheet_add?method=get&score_id='.$scoreId)}">添加曲谱</a>
           		<button class="btn ajax-post confirm" url="{:U('del?score_id='.$scoreId)}" target-form="ids">删 除</button>
                <input type="text" class="form-control" name="name" placeholder="曲谱名称" value="{$_condition['name']}"/>
				<input type="hidden" name="score_id" value="{$scoreId}">
                <button type="submit" class="btn btn-link">
              		<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
                </button>
    			<a class="sch-btn" href="javascript:;" id="search" url="{:U('index')}"></a>
    		</div>
    	</div>
    </form>
    
    <div class="row">
    	<div class="div_10"></div>
    </div>
    
    <!-- 数据列表 -->
    <div class="row">
	<table class="table">
    <thead>
        <tr>
		<th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
		<th class="">ID</th>
		<th class="">曲谱名称</th>
		<th class="">歌曲名</th>
		<th class="">歌手名</th>
		<th class="">状态</th>
		<th class="">标签列表</th>
		<th class="">曲谱作者</th>
		<th class="">创建时间</th>
		</tr>
    </thead>
    <tbody>
		<notempty name="_list">
		<volist name="_list" id="vo">
		<tr>
            <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
            <td>{$vo.id}</td>
			<td><a id="sheet" onclick="sheet_detail('{:U('Sheet/detail?id='.$vo['id'])}')">{$vo.name}</a></td>
			<td>{$vo.song_name}</td>
			<td>{$vo.singer}</td>
			<td>{$vo.status_name}</td>
			<td>{$vo.tags}</td>
			<td>{$vo.creator_name}</td>
			<td>{$vo.create_time}</td>
		</tr>
		</volist>
		<else/>
		<td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
	</tbody>
    </table>
	</div>
    <div class="page">
        {$_page}
    </div>
    </div>
</block>

<block name="script">
	<script src="__STATIC__/bootstrap/js/bootstrap.min.js"></script>
	<script src="__STATIC__/bootstrap-select/js/bootstrap-select.min.js"></script>
	<script src="__STATIC__/layer/layer.js"></script>
	<script type="text/javascript">

    //导航高亮
    highlight_subnav('{:U('ScoreSheet/index')}');


	</script>
</block>
